package com.company.builder;

public class Director {
    Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public void setBuilder(Builder builder) {
        this.builder = builder;
    }

    public Product createProduct(){
        builder.createPartA();
        builder.createPartB();
        builder.createPartC();
        return builder.getProduct();
    }

}
